#pragma once
#include "State/GameState.h"
#include "Tools/Image.h"
#include "Player/AnimPlayer.h"

namespace LTGame
{
	enum{
		MM_START,
		MM_RANKING,
		MM_SET,
		MM_HELP,
		MM_ABOUT,
		MM_SHUTDOMN,
		MM_TWITTER,
		MM_FACEBOOK,
		MM_CONTINUE,
		MM_LEN
	};

	class ST_MainMenu :
		public GameState
	{
	public:
		ST_MainMenu(GST_FLAG flag);
		~ST_MainMenu(void);
		bool logic(void);
		virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
		virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);

	private:
		void doPressLogic();

	private:
		cocos2d::CCSprite* mm_img;
		cocos2d::CCSprite* mm_img1;
		AnimPlayer* mm_player;
		int mm_index;
		double speed;
	};

}
